<template>
  <div>
    <van-cell
      center
      title="单元格"
      is-link
      :icon="header"
      v-for="(item, index) in EnterpriseData"
      :key="index"
    >
      <template #title>
        <span class="custom-title"
          ><span>企业名称：</span><span>{{ item.company }}</span></span
        >
        <div class="van-cell__label">
          <span>注册时间:</span><span>{{ item.createTime }}</span>
        </div>
        <div class="van-cell__label">
          <span>法人:</span><span>{{ item.creator }}</span>
        </div>
      </template>
    </van-cell>
  </div>
</template>

<script>
import { GetCustIncomeData } from "@/request/api";
export default {
  data() {
    return {
      header: require("../assets/img/旗下企业-头像.png"),
      EnterpriseData: [],
    };
  },
  created() {
    GetCustIncomeData(this.$route.query.id).then((res) => {
      this.EnterpriseData = res.data.datas[3].data;
    });
  },
};
</script>
 
<style lang = "less" scoped>
.van-cell__left-icon {
  height: 50px;
  width: 50px;
  img {
    width: 100%;
    height: 50px;
  }
}
.van-cell__label {
  margin: 0;
}
</style>